body {
    margin: 0;
    padding: 20px;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 50%, #48dbfb 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    padding: 30px;
    text-align: center;
    color: white;
    position: relative;
}

.header h1 {
    margin: 0 0 15px 0;
    font-size: 2.8em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.arena-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
}

.arena-name, .arena-status {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    font-weight: bold;
}

.duel-arena {
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    position: relative;
}

.fighter {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
}

.left-fighter {
    animation: slideInLeft 1s ease-out;
}

.right-fighter {
    animation: slideInRight 1s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.fighter-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ffeaa7, #fab1a0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    border: 4px solid #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
}

.fighter-info {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.fighter-name {
    font-size: 1.4em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.fighter-title {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.fighter-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #ecf0f1;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9em;
}

.stat-value {
    font-weight: bold;
    color: #2c3e50;
}

.vs-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

.vs-icon {
    font-size: 3em;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

.vs-text {
    font-size: 2em;
    font-weight: bold;
    color: #e74c3c;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.battle-effects {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    pointer-events: none;
}

.effect-spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #f39c12;
    border-radius: 50%;
    animation: spark 1.5s infinite;
}

.effect-spark:nth-child(1) {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.effect-spark:nth-child(2) {
    top: 60%;
    left: 70%;
    animation-delay: 0.5s;
}

.effect-spark:nth-child(3) {
    top: 80%;
    left: 20%;
    animation-delay: 1s;
}

@keyframes spark {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.battle-result {
    padding: 40px;
    background: linear-gradient(45deg, #00b894, #00cec9);
    color: white;
    text-align: center;
}

.result-header h2 {
    margin: 0 0 30px 0;
    font-size: 2.2em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.winner-section {
    margin-bottom: 30px;
}

.winner-crown {
    font-size: 4em;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.winner-name {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.winner-title {
    font-size: 1.2em;
    opacity: 0.9;
}

.battle-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.detail-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.detail-label {
    display: block;
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 5px;
}

.detail-value {
    font-size: 1.3em;
    font-weight: bold;
}

.cooldown-info {
    padding: 20px;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #dee2e6;
}

.cooldown-icon {
    font-size: 1.5em;
    margin-right: 10px;
}

.cooldown-text {
    display: inline;
    font-size: 1.1em;
    color: #6c757d;
}

.footer {
    padding: 30px;
    background: #2c3e50;
    color: white;
}

.tips h3 {
    margin: 0 0 15px 0;
    color: #3498db;
}

.tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips li {
    padding: 8px 0;
    border-bottom: 1px solid #34495e;
    position: relative;
    padding-left: 20px;
}

.tips li:before {
    content: "⚡";
    position: absolute;
    left: 0;
    color: #f39c12;
}

.tips li:last-child {
    border-bottom: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .duel-arena {
        flex-direction: column;
        gap: 30px;
    }
    
    .vs-section {
        order: 2;
    }
    
    .fighter {
        width: 100%;
        max-width: 300px;
    }
    
    .battle-details {
        grid-template-columns: 1fr;
    }
}